package com.godpaper.the2tigers.busniess.managers
{
	import com.godpaper.the2tigers.model.ConfigModel;
	public class ConfigManager
	{
		public function ConfigManager()
		{
		}
		
		public function loadConfigXMLfileSuccess(result:XML):void
		{
			trace(result.aboutPieces);
			ConfigModel.getInstance().PIECE_HEIGHT = (int)result.aboutPieces.height;
			ConfigModel.getInstance().PIECE_WIDTH = (int)result.aboutPieces.width;
			trace(result.aboutGaskets);
			ConfigModel.getInstance().GASKET_ALPHA = (Number)result.aboutGaskets.alpha;
			ConfigModel.getInstance().GASKET_COLOR = (uint)result.aboutGaskets.color;
			ConfigModel.getInstance().GASKET_HEIGHT = (int)result.aboutGaskets.height;
			ConfigModel.getInstance().GASKET_WIDTH = (int)result.aboutGaskets.width;
			ConfigModel.getInstance().GASKET_DISABLED_COLOR = (uint)result.aboutGaskets.disabledColor;
			trace(result.aboutChessBoard);
			ConfigModel.getInstance().CHESS_BOARD_HEIGHT = (int)result.aboutChessBoard.height;
			ConfigModel.getInstance().CHESS_BOARD_WIDTH = (int)result.aboutChessBoard.width;
			
		}
		
		public function loadConfigXMLfileFailure(event:*):void
		{
			trace("loadConfigXMLfileFailure:",event);
		}
	}
}